/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_MassageVO_ } from '../models/BaseResponse_List_MassageVO_';
import type { BaseResponse_long_ } from '../models/BaseResponse_long_';
import type { BaseResponse_MassageVO_ } from '../models/BaseResponse_MassageVO_';
import type { BaseResponse_Page_Massage_ } from '../models/BaseResponse_Page_Massage_';
import type { BaseResponse_Page_MassageVO_ } from '../models/BaseResponse_Page_MassageVO_';
import type { MassageAddRequest } from '../models/MassageAddRequest';
import type { MassageQueryRequest } from '../models/MassageQueryRequest';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class MassageControllerService {
    /**
     * addMassage
     * @param massageAddRequest massageAddRequest
     * @returns BaseResponse_long_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static addMassageUsingPost(
        massageAddRequest: MassageAddRequest,
    ): CancelablePromise<BaseResponse_long_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/massage/add',
            body: massageAddRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getMassageVOById
     * @param id id
     * @returns BaseResponse_MassageVO_ OK
     * @throws ApiError
     */
    public static getMassageVoByIdUsingGet(
        id?: number,
    ): CancelablePromise<BaseResponse_MassageVO_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/massage/get/vo',
            query: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getUnRead
     * @returns BaseResponse_List_MassageVO_ OK
     * @throws ApiError
     */
    public static getUnReadUsingGet(): CancelablePromise<BaseResponse_List_MassageVO_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/massage/getUnRead',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getUnReadNum
     * @returns BaseResponse_long_ OK
     * @throws ApiError
     */
    public static getUnReadNumUsingGet(): CancelablePromise<BaseResponse_long_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/massage/getUnReadNum',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listMassageByPage
     * @param massageQueryRequest massageQueryRequest
     * @returns BaseResponse_Page_Massage_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listMassageByPageUsingPost(
        massageQueryRequest: MassageQueryRequest,
    ): CancelablePromise<BaseResponse_Page_Massage_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/massage/list/page',
            body: massageQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listMassageVOByPage
     * @param massageQueryRequest massageQueryRequest
     * @returns BaseResponse_Page_MassageVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listMassageVoByPageUsingPost(
        massageQueryRequest: MassageQueryRequest,
    ): CancelablePromise<BaseResponse_Page_MassageVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/massage/list/page/vo',
            body: massageQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * listMyMassageVOByPage
     * @param massageQueryRequest massageQueryRequest
     * @returns BaseResponse_Page_MassageVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static listMyMassageVoByPageUsingPost(
        massageQueryRequest: MassageQueryRequest,
    ): CancelablePromise<BaseResponse_Page_MassageVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/massage/my/list/page/vo',
            body: massageQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
}
